negotiator.analysis
Class BidPointSorterA

java.lang.Object
  extended by negotiator.analysis.BidPointSorterA
All Implemented Interfaces:
java.util.Comparator<BidPoint>

public class BidPointSorterA
extends java.lang.Object
implements java.util.Comparator<BidPoint>

Sorts BidPoint based on their utility for agent A.


Constructor Summary
BidPointSorterA()
           
 
Method Summary
 int compare(BidPoint b1, BidPoint b2)
          Comperator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

BidPointSorterA

public BidPointSorterA()
Method Detail

compare

public int compare(BidPoint b1,
                   BidPoint b2)
Comperator. If utility b1 < b2 then -1, else if > then 1, else compare hashcodes.

Specified by:
compare in interface java.util.Comparator<BidPoint>